import FetchHelper from "../helper/fetch-helper";

export default class JzzyHandle {
    static async jzzyEditDynamicApi() {
        const editDynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/减灾资源编辑.json`)
        return editDynamicForms;
    }
    static async list(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/jzzy/`+id)
        return resp;
    }
    // static async jzzyEditDynamicApi() {
    //     const dynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/减灾资源查看.json`)
    //     return dynamicForms;
    // }
    static async list2(id) {
        const resp = await FetchHelper.getJson(`/admin-api/ybyj/jzzy/`+id)
        return resp;
    }
    static async jzzyLookDynamicApi() {
        const lookDynamicForms = await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/减灾资源查看.json`)
        return lookDynamicForms;
    }
    static async jzzyAddDynamicApi(){
        const jzzyAddDynamicForms=await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/减灾资源新增.json`)
        return jzzyAddDynamicForms;
    }
    static async jzzyXqEditDynamicApi(){
        const jzzyXqEdit=await FetchHelper.getJson(`${process.env.PUBLIC_URL}/datas/减灾资源小类编辑.json`)
        return jzzyXqEdit;
    }
}